package com.ruibang.glass.produce.mapper;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruibang.glass.produce.domain.req.GlassIdTrackReq;
import com.ruibang.glass.produce.domain.resp.GlassIdTrackDetail;
import com.ruibang.glass.produce.entity.GlassBind;
import com.teaming.cloud.framework2.autoconfigure.dynamic.datasource.annotation.DS;
import com.teaming.cloud.framework2.autoconfigure.mybatisplus.mapper.CommonMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GlassIdTrackMapper extends CommonMapper<GlassBind> {

    @DS("hot2_bc2mes")
    List<String> getHotId(@Param("start") long start,@Param("end") long end);
    @DS("cold1_bc2mes")
    IPage<GlassBind> pageQuery(Page<GlassBind> page, @Param("glassIdTrackReq") GlassIdTrackReq glassIdTrackReq);
    @DS("cold1_bc2mes")
    List<GlassIdTrackDetail> getSlProductionStationInfo(@Param("serialNumber") String serialNumber);
    @DS("hot2_bc2mes")
    List<GlassIdTrackDetail> getBcProductionStation(@Param("glassId") String glassId);
    @DS("cold1_bc2mes")
    List<GlassBind> query(@Param("req") GlassIdTrackReq req);
}
